package org.xxl.iso 
{
	/**
	 * ...
	 * @author XXL
	 */
	public class DrawnIsoTile extends IsoObject 
	{
		protected var _color:uint;
		
		public function DrawnIsoTile(size:Number, color:uint = 0xCCCCCC) 
		{
			this.mouseEnabled = false;
			this.mouseChildren = false;
			super(size);
			this._color = color;
			draw();
		}
		
		protected function draw():void
		{
			graphics.clear();
			graphics.beginFill(_color,0.3);
			graphics.lineStyle(0, 0, .5);
			graphics.moveTo( -_size, 0);
			graphics.lineTo(0, -_size * .5);
			graphics.lineTo(_size, 0);
			graphics.lineTo(0, _size * .5);
			graphics.lineTo( -_size, 0);
		}
	}

}